﻿<phone:PhoneApplicationPage 
    x:Class="HomeWP.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit">


    <!--LayoutRoot is the root grid where all page content is placed-->



    <!--ContentPanel - place additional content here-->
    <!-- <StackPanel Grid.ColumnSpan="2">
      <Grid Height="417" Width="427" Margin="27,0,26,0">
                <Button Content="Räume" Height="72" HorizontalAlignment="Left" Margin="80,47,0,0" x:Name="button4" VerticalAlignment="Top" Width="272" Click="button4_Click" />
                <Button Content="Gewerke" Height="72" HorizontalAlignment="Left" Margin="80,138,0,0" x:Name="bt_Functions" VerticalAlignment="Top" Width="272" Click="bt_Functions_Click" />
                <Button Content="Geräte Liste" HorizontalAlignment="Left" Margin="80,341,0,0" x:Name="button1" Width="272" Click="button1_Click" />
                <Button Content="Systemvariable" Height="72" HorizontalAlignment="Left" Margin="80,238,0,0" x:Name="bt_Variablen" VerticalAlignment="Top" Width="272" Click="bt_Variablen_Click" />
            </Grid>
         
        </StackPanel>   -->

    <phone:PhoneApplicationPage.Resources  >
        <Style x:Key="GroupHeader" BasedOn="{StaticResource LongListSelectorGroupHeaderStyle}" TargetType="TextBlock">
            <Setter Property="FontSize" Value="36"/>
        </Style>

    </phone:PhoneApplicationPage.Resources>

    <phone:Pivot Title="WPMatic 0.2" x:Name="p_Main" Margin="0,0,0,8" LoadingPivotItem="p_Main_LoadingPivotItem">
        <phone:PivotItem CacheMode="{x:Null}" x:Name="pi_Favorites"  Header="Favoriten">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <StackPanel x:Name="sp_Favorites" >
                </StackPanel>
            </ScrollViewer>
        </phone:PivotItem>
        <phone:PivotItem CacheMode="{x:Null}" x:Name="pi_Rooms"  Header="Räume">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <StackPanel x:Name="sp_Rooms" >                    
                </StackPanel>
            </ScrollViewer>
        </phone:PivotItem>
        <phone:PivotItem CacheMode="{x:Null}" Header="Gewerke" x:Name="pi_Functions">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <StackPanel x:Name="sp_Functions" >
                </StackPanel>
            </ScrollViewer>
        </phone:PivotItem>
        <phone:PivotItem CacheMode="{x:Null}" Header="Variablen" x:Name="pi_Variables">
            <StackPanel Name="spVars">

            </StackPanel>
        </phone:PivotItem>
    <!--    <phone:PivotItem CacheMode="{x:Null}" Header="Geräte" x:Name="pi_Devices">
            <phone:LongListSelector  HorizontalAlignment="Stretch" Margin="0" Name="lls_Devices" VerticalAlignment="Stretch" 
                GroupHeaderTemplate="{ StaticResource groupHeaderTemplate}"
                                    
          ItemTemplate="{StaticResource deviceItemTemplate}">

            </phone:LongListSelector>
        </phone:PivotItem>
       -->
    </phone:Pivot>


    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Minimized">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="abmiSettings" Text="Einstellungen" Click="abmiSettings_Click"  />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>